package erlwitch.tree;

import java.util.List;

public class Record extends Term {
	
	private String type;
	private Term expresion;
	private List<RecordField> fields;
	private String singleField;

	public Record(int begin, int end, String type, Term expresion,
			String singleField) {
		super(begin, end);
		this.type = type;
		this.expresion = expresion;
		this.singleField = singleField;
	}
	public Record(int begin, int end, String type, Term expresion,
			List<RecordField> fields) {
		super(begin, end);
		this.type = type;
		this.expresion = expresion;
		this.fields = fields;
	}
	public Record(int begin, int end, String type, String singleField) {
		super(begin, end);
		this.type = type;
		this.singleField = singleField;
	}
	public Record(int begin, int end, String type, List<RecordField> fields) {
		super(begin, end);
		this.type = type;
		this.fields = fields;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Term getExpresion() {
		return expresion;
	}
	public void setExpresion(Term expresion) {
		this.expresion = expresion;
	}
	public List<RecordField> getFields() {
		return fields;
	}
	public void setFields(List<RecordField> fields) {
		this.fields = fields;
	}
	public String getSingleField() {
		return singleField;
	}
	public void setSingleField(String singleField) {
		this.singleField = singleField;
	}

}
